package com.fivestar.finance.app.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by hjd on 2016/5/26.
 */
public class UserBriefResp implements Serializable, Parcelable {

    String portraitPicUrl;//头像url
    String name;//名字 （司机名或商户名）
    String driverNo;//车牌号
    double score;//商户或司机评分

    public String getPortraitPicUrl() {
        return portraitPicUrl;
    }

    public void setPortraitPicUrl(String portraitPicUrl) {
        this.portraitPicUrl = portraitPicUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDriverNo() {
        return driverNo;
    }

    public void setDriverNo(String driverNo) {
        this.driverNo = driverNo;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.portraitPicUrl);
        dest.writeString(this.name);
        dest.writeString(this.driverNo);
        dest.writeDouble(this.score);
    }

    public UserBriefResp() {
    }

    protected UserBriefResp(Parcel in) {
        this.portraitPicUrl = in.readString();
        this.name = in.readString();
        this.driverNo = in.readString();
        this.score = in.readDouble();
    }

    public static final Creator<UserBriefResp> CREATOR = new Creator<UserBriefResp>() {
        @Override
        public UserBriefResp createFromParcel(Parcel source) {
            return new UserBriefResp(source);
        }

        @Override
        public UserBriefResp[] newArray(int size) {
            return new UserBriefResp[size];
        }
    };
}
